
class Student:
    name = None # 学生的姓名

    def say_hi(self):
        print(f"大家好呀，我是{self.name}, 欢迎大家多多关照")

    def say_hi2(self, msg):
        print(f"大家好呀，我是{self.name},{msg}")

stu1 = Student()
stu1.name = "张三"
stu1.say_hi()

stu2 = Student()
stu2.name = "周杰伦"
stu2.say_hi2("I hope the world is peace")
